<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <style>
        #title{
            text-align: center;
            margin-top: 400px;
        }
        table{
            margin: 0 auto;
            line-height: 35px;
            font-size: 19px;
            font-family: "华文楷体";
        }
        table td{
            padding-left: 10px;
        }
        span{
            font-family: "楷体";
        }
        .style0 {
            border-left: none;
            border-right: none;
            border-top: none;
        }

    </style>
    <title>Document</title>
</head>
<body style="text-align:center;">
<center>
    <p style="font-size: 30px;margin-top: 100px;font-family: 楷体"><b>消 防 设 施 维 护 保 养</b></p>
    <p style="font-size: 60px;font-family: 楷体"><b>报　　告　　书</b></p>
    <br><br><br><br><br><br><br><br><br><br>
</center>
<table width="450" bgcolor="#ffffff" style="border-color: #ffffff;border: 0px">
    <tr>
        <td width="100%" colspan="2">
            <h2 style="font-weight: unset;font-family: 楷体;text-align: left;">维　保　项　目 ：${itemName}
            </h2>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <h2 style="font-weight: unset;font-family: 楷体;text-align: left;">委　托　单　位 ：${businessName}
            </h2>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <h2 style="font-weight: unset;font-family: 楷体;text-align: left;">
                维　保　机　构 ：${orgName}
            </h2>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <h2 style="font-weight: unset;font-family: 楷体;text-align: left;">
                维　保　区　间 ：${maintenanceDate}
            </h2>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <h2 style="font-weight: unset;font-family: 楷体;text-align: left;">
                报　告　日　期 ：${reportDate}
            </h2>
        </td>
    </tr>
</table>
<br><br><br><br>
<h2 id="title">消防设施维护保养报告</h2>
<#--<h3 style="margin-top: 200px;text-align: left;width: 595px;margin-left: auto;margin-right: auto">编号:</h3>-->
<table width="595" bgcolor="#ffffff" style="margin-top: 200px;margin-bottom: 50px; border-color: #ffffff;border: 0px">
    <tr>
        <td width="100%" colspan="2"><h3 style="text-align: left;">编号:</h3></td>
    </tr>
</table>
<table border="1" cellspacing="0" cellpadding="0" width="595">
    <tr>
        <td width="50" height="50" style="text-align: center">项目名称</td>
        <td width="50" height="50">${itemName}</td>
    </tr>
    <tr>
        <td width="50" height="50" style="text-align: center">项目地址</td>
        <td width="50" height="50">${itemAddr}</td>
    </tr>
    <#--<tr>
        <td width="50" height="50" style="text-align: center">涉及消防设施类型列表</td>
        <td width="50" height="150">

        </td>
    </tr>-->
    <tr>
        <td width="50" height="50" style="text-align: center">项目概况</td>
        <td width="50" height="400"><b>本月维保维修情况如下：</b> <br>
            <b>一、维保任务。</b><span>本月涉及的维保任务总数<span style="text-decoration: underline">${maintenanceTaskCount}</span>个，完成的维保任务数<span style="text-decoration: underline">${completeMaintenanceTaskCount}</span>个，这月完成的维保任务数<span style="text-decoration: underline">${completeMainThisMonthCount}</span>个，上月完成的维保任务数<span style="text-decoration: underline">${completeMainBeforeMonthCount}</span> 个，完成率<span style="text-decoration: underline">${completeMaintenanceRate}</span><br></span>
            <b>二、维修任务。</b><span>本月涉及的维修任务总数<span style="text-decoration: underline">${repairTaskCount}</span>个，完成的维修任务数<span style="text-decoration: underline">${completeRepairTaskCount}</span>个，这月完成的维修任务数<span style="text-decoration: underline">${completeRepairThisMonthCount}</span>个，上月完成的维修任务数<span style="text-decoration: underline">${completeRepairBeforeMonthCount}</span> 个，完成率<span style="text-decoration: underline">${completeRepairRate}</span><br></span>
        </td>
    </tr>
    <tr>
        <td style="text-align: center">维保维修结果确认</td>
        <td height="200"><span>委托单位意见： <br><br><br>

            &emsp;&emsp;&emsp;&emsp;单位消防安全责任人或管理人（签字）： <br><br>
            &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;（委托单位公章） <br>
            </span>
        </td>
    </tr>

</table>
<table width="595" bgcolor="#ffffff" style="margin-top: 200px;margin-bottom: 50px; border-color: #ffffff;border: 0px">
    <tr>
        <td width="100%" colspan="2"><h3 style="text-align: left;">(一)维保任务中不合格设备</h3></td>
    </tr>
</table>
<#list completeMaintenanceList as completeMaint>
    <table border="1" cellspacing="0" cellpadding="0" width="595" style="text-align: center">
        <tr>
            <td width="100" colspan="2">任务名称</td>
            <td width="100" colspan="6">${completeMaint.name}</td>
        </tr>
        <tr>
            <td width="100" colspan="2">任务时间</td>
            <td width="100" colspan="6">${completeMaint.starttime}-${completeMaint.endtime}</td>
        </tr>
        <tr>
            <td width="100" colspan="2">完成时间</td>
            <td width="100" colspan="6">${completeMaint.completetime}</td>
        </tr>
        <tr>
            <th width="100" height="40">回路</th>
            <th width="100" height="40">地址编码</th>
            <th width="100" height="40">用户编码</th>
            <th width="100" height="40">部件名称</th>
            <th width="100" height="40">测试内容</th>
            <th width="100" height="40">检查结果</th>
            <th width="100" height="40">人工核查</th>
            <th width="100" height="40">异常原因</th>
        </tr>
        <#list completeMaint.childList as child>
            <tr>
                <td width="150" height="40">${child.loop}</td>
                <td width="100" height="40">${child.addrCode}</td>
                <td width="100" height="40">${child.userCode}</td>
                <td width="100" height="40">${child.name}</td>
                <td width="100" height="40">${child.testContent}</td>
                <td width="100" height="40">${child.result}</td>
                <td width="100" height="40">${child.personCheck}</td>
                <td width="100" height="40">${child.reason}</td>
            </tr>
        </#list>
        <tr style="text-align: left">
            <td width="100" colspan="8">任务备注:${completeMaint.remark}</td>
        </tr>
        <#if completeMaint.oneList??>
            <tr>
                <td width="100" colspan="2">任务名称</td>
                <td width="100" colspan="6">${completeMaint.oneDay.name}</td>
            </tr>
            <tr>
                <td width="100" colspan="2">任务时间</td>
                <td width="100" colspan="6">${completeMaint.oneDay.starttime}-${completeMaint.oneDay.endtime}</td>
            </tr>
            <tr>
                <td width="100" colspan="2">完成时间</td>
                <td width="100" colspan="6">${completeMaint.oneDay.completetime}</td>
            </tr>
            <tr>
                <th width="100" height="40">回路</th>
                <th width="100" height="40">地址编码</th>
                <th width="100" height="40">用户编码</th>
                <th width="100" height="40">部件名称</th>
                <th width="100" height="40">测试内容</th>
                <th width="100" height="40">检查结果</th>
                <th width="100" height="40">人工核查</th>
                <th width="100" height="40">异常原因</th>
            </tr>
            <#list completeMaint.oneList as one>
                <tr>
                    <td width="150" height="40">${one.loop}</td>
                    <td width="100" height="40">${one.addrCode}</td>
                    <td width="100" height="40">${one.userCode}</td>
                    <td width="100" height="40">${one.name}</td>
                    <td width="100" height="40">${one.testContent}</td>
                    <td width="100" height="40">${one.result}</td>
                    <td width="100" height="40">${one.personCheck}</td>
                    <td width="100" height="40">${one.reason}</td>
                </tr>
            </#list>
            <tr style="text-align: left">
                <td width="100" colspan="8">任务备注:${completeMaint.oneDay.remark}</td>
            </tr>
        </#if>

    </table>
</#list>
<table width="595" bgcolor="#ffffff" style="margin-top: 200px;margin-bottom: 50px; border-color: #ffffff;border: 0px">
    <tr>
        <td width="100%" colspan="2"><h3 style="text-align: left;">(二)继续上月维修任务中不合格设备</h3></td>
    </tr>
</table>
<#list completeRepairNList as completeRepair>
    <table border="1" cellspacing="0" cellpadding="0" width="595" style="text-align: center">
        <tr>
            <td width="100" colspan="2">任务名称</td>
            <td width="100" colspan="6">${completeRepair.name}</td>
        </tr>
        <tr>
            <td width="100" colspan="2">任务时间</td>
            <td width="100" colspan="6">${completeRepair.starttime}-${completeRepair.endtime}</td>
        </tr>
        <tr>
            <td width="100" colspan="2">完成时间</td>
            <td width="100" colspan="6">${completeRepair.completetime}</td>
        </tr>
        <tr>
            <th width="100" height="40">回路</th>
            <th width="100" height="40">地址编码</th>
            <th width="100" height="40">用户编码</th>
            <th width="100" height="40">部件名称</th>
            <th width="100" height="40">测试内容</th>
            <th width="100" height="40">检查结果</th>
            <th width="100" height="40">人工核查</th>
            <th width="100" height="40">异常原因</th>
        </tr>
        <#list completeRepair.childList as child>
            <tr>
                <td width="150" height="40">${child.loop}</td>
                <td width="100" height="40">${child.addrCode}</td>
                <td width="100" height="40">${child.userCode}</td>
                <td width="100" height="40">${child.name}</td>
                <td width="100" height="40">${child.testContent}</td>
                <td width="100" height="40">${child.result}</td>
                <td width="100" height="40">${child.personCheck}</td>
                <td width="100" height="40">${child.reason}</td>
            </tr>
        </#list>
        <tr style="text-align: left">
            <td width="100" colspan="8">任务备注:${completeRepair.remark}</td>
        </tr>

    </table>
</#list>
</body>
</html>